const http = require('http')
http.createServer((req, res) => {
  if (req.url === '/api/user/login') {
    res.end('{"y": 1}')
  } else {
    res.end('404')
  }
}).listen(8080)